import request from '@/sheep/request';
export default {
	/**<!--售后订单Start--!>**/
	//列表
	materialList: (data) =>
		request({
			url: 'aftersale/index',
			method: 'POST',
			data,
		}),
	//拒绝退货
	materialRefusemin: (data) =>
		request({
			url: 'order/aftersale/refusemin',
			method: 'POST',
			data,
		}),
	//统一退货
	materialRefuseminConfim: (data) =>
		request({
			url: 'order/aftersale/refundmin',
			method: 'POST',
			data,
		}),
	/**<!--售后订单End--!>**/
	
	/**<!--素材库Start--!>**/
	sourceScList: (data) =>
		request({
			url: 'custom/sclist',
			method: 'POST',
			data,
		}),
	/**<!--素材库End--!>**/
	
	addMaterial: (data) =>
		request({
			url: 'custom/sc_publish',
			method: 'POST',
			data,
		}),
	commentList: (data) =>
		request({
			url: 'custom/goods_comm_list',
			method: 'POST',
			data,
		}),
	goodsList: (data) =>
		request({
			url: 'custom/goodslistuser',
			method: 'POST',
			data,
		}),
	goodsListNoUser: (data) =>
		request({
			url: 'custom/goodslist',
			method: 'POST',
			data,
		}),
    delGoods: (data) =>
    	request({
    		url: 'custom/delgoods',
    		method: 'POST',
    		data,
    	}),
    updateGoods: (data) =>
    	request({
    		url: 'custom/updatagoodsstatus',
    		method: 'POST',
    		data,
    	}),
    getCategory: (data) =>
    	request({
    		url: 'category',
    		method: 'POST',
            data
    	}),
    goodsConfig: (type) =>
    	request({
    		url: 'custom/goodsconfig',
    		method: 'POST',
    	}),
    addGoods: (data) =>
    	request({
    		url: 'goods/goods/addmin',
    		method: 'POST',
    		data,
    	}),
    editGoods: (data) =>
    	request({
    		url: 'goods/goods/editmin',
    		method: 'POST',
    		data,
    	}),
	goodsDetail: (data) =>
		request({
			url: 'goods/goods/detailmin',
			method: 'POST',
			data,
		}),
    getWllist: (data) =>
    	request({
    		url: 'custom/wllist',
    		method: 'POST',
    		data,
    	}),
}
